//
//  GYLoginViewModel.h
//  GYDemo
//
//  Created by Mrzhang on 2018/3/22.
//  Copyright © 2018年 mac. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "GYStorageUserViewModel.h"
@interface GYLoginInfoModel : NSObject
@property (nonatomic, strong) NSString * access_token;
@property (nonatomic, assign) NSInteger id;
@property (nonatomic, strong) NSString * loginmobile;


@property (nonatomic, assign) NSInteger createtime;
@property (nonatomic, strong) NSString * mobile;
@property (nonatomic, strong) NSString * nick_name;
@property (nonatomic, strong) NSString * score;
@property (nonatomic, strong) NSString * collection;
@property (nonatomic, strong) NSString * follow;
@property (nonatomic, strong) NSString * status;
@property (nonatomic, strong) NSString * headimg;
@property (nonatomic, strong) NSString * storeid;

@end

@interface GYLoginStatusModel : NSObject
@property (nonatomic, assign) BOOL loginstatus;
@property (nonatomic, strong) NSString * status;
@end


typedef void(^LoginCallback)(NSInteger status);
@interface GYLoginViewModel : NSObject
@property (nonatomic,strong) GYLoginInfoModel *loginInfoModel;
@property (nonatomic,strong) GYLoginStatusModel *loginStatusModel;
@property (nonatomic,strong) NSString *username;
@property (nonatomic,strong) NSString* password;
@property (nonatomic,assign) BOOL loginstatus;
@property (nonatomic,assign) NSInteger roleType;//1、用户  2、仓储  3、物流
+(instancetype)shareInterface;
///商城用户登录
-(void)requsetLogin;
///默认登录
-(void)requestDefaultLogin;
-(void)requsetLogout;
@end
